<#macro page pm>
    <div id="pages">
	    <a class="a1">${pm.total}条</a> 
	    <#if pm.currentPage != pm.first>
	    <a href="${pm.url}${pm.first}" class="a1">首  页</a> 
	    <#else>
	     <span>首  页</span> 
	    </#if>
	    
	    <#if pm.currentPage != pm.first>
	    <a href="${pm.url}${pm.previous}" class="a1">上一页</a> 
	    <#else>
	    <span>上一页</span> 
	    </#if>
	    
	    <#list pm.pageList as pageNum>
	    <#if pm.currentPage == pageNum>
	    <span>${pageNum}</span> 
	    <#else>
	     <a href="${pm.url}${pageNum}">${pageNum}</a> 
	    </#if>
	    </#list>
	    <#if pm.currentPage != pm.last>
	    <a href="${pm.url}${pm.next}" class="a1">下一页</a>
	    <#else>
	     <span>下一页</span> 
	    </#if>
	    <#if pm.currentPage != pm.last>
	    <a href="${pm.url}${pm.last}" class="a1">尾  页</a> 
	    <#else>
	     <span>尾  页</span> 
	    </#if>
    </div>
</#macro> 